//
// Created by Zhangwj on 2023/9/27.
//

#include "BreakStmtItemNode.h"

std::unique_ptr<BreakStmtItemNode> BreakStmtItemNode::BreakStmtItemParser(Parser &parser) {
    std::unique_ptr<BreakStmtItemNode> breakStmtItemNode = std::make_unique<BreakStmtItemNode>();
    if (parser.getLexType(0) == LexType::BREAKTK) {
        parser.next();
    }
    if (parser.getLexType(0) == LexType::SEMICN) {
        parser.next();
    }
    return breakStmtItemNode;
}
